<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.javabean.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		String no = request.getParameter("no");
		Student st = Student.get(no);
		%>
	<h1>学生修改</h1>	
	<form action="update" method="post">
	学号:<input type="text" name="no" value="<%=st.getNo() %>" readonly="readonly"><br>
	姓名:<input type="text" name="name" value="<%=st.getName() %>"><br>
	年龄:<input type="text" name="age" value="<%=st.getAge()%>"><br>
	性别:<input type="radio" name="sex" value="男" <%if(st.getSex().equals("男")){ %>checked="checked" <%}%>>男
	<input type="radio" name="sex" value="女" <%if(st.getSex().equals("女")) {%> checked="checked" <%} %>>女<br>
	<input type="submit" value="提交">
	</form>
</body>
</html>